<script lang="ts" setup>
  import { useRouter } from 'vue-router';
  const router = useRouter();
  const onClickLeft = () => history.back();
  defineProps({
    title: {
      type: String,
      default: '标题',
      required: true
    },
    back: {
      type: Boolean,
      default: false
    }
  })
</script>

<template>
    <van-nav-bar
        :title="title"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
    />
</template>

<style lang="less" scoped>
</style>
